package edu.ptu.communityplatform.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.ptu.communityplatform.domain.entity.Plot;
import org.springframework.transaction.annotation.Transactional;

/**
 * @BelongsProject: communityPlatform
 * @BelongsPackage: edu.ptu.communityplatform.service
 * @Author: HYJ
 * @CreateTime: 2025-04-08  23:35
 * @Description: TODO
 * @Version: 1.0
 */
public interface IPlotService extends IService<Plot> {

    /**
     * 功能描述: 分页查询小区信息
     *
     * @param pageNum  页码
     * @param pageSize 每页大小
     * @param plotName 小区名称
     * @param plotNo   小区编号
     * @return {@link IPage}<{@link Plot}>
     */
    IPage<Plot> getPage(Integer pageNum, Integer pageSize, String plotName, String plotNo);

    @Transactional
    boolean removeById(Long plotId);
}
